package com.yuexunit.finance.seal.entity.lexion;

/**
 * @author NTBK-021-1006
 *
 */
public enum SealTypeEnum {

	UNKNOWN("未知"), PERSONAL("法人印章"), ENTERPRISE("企业印章"), FINANCE("财务印章"), OTHERS("其他印章");

	private final String paramType;

	private SealTypeEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 印章类型 0:未知/1:法人/2:企业/3:财务/4:其他
	 * @return 参数类型枚举
	 */
	public static SealTypeEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}
}
